package cn.gwm.flink.streaming.strategy.estimatesoh;

import cn.gwm.flink.streaming.constant.CellBatterTypeEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * ocv策略上下文
 * @author GW00283474
 */
public class OcvStrategyPhevFactory {
    private static final Map<String,OcvStrategyPhev> map =new HashMap<>(0);
    static {
        map.put(CellBatterTypeEnum.BATTER_TYPE_LFP.getKey(),new OcvLfpStrategyPhev());
        map.put(CellBatterTypeEnum.BATTER_TYPE_NCM.getKey(), new OcvNcmStrategyPhev());
    }

    public static OcvStrategyPhev getOcvStrategy(String key){
        return map.get(key);
    }
}
